Skip to content

fix the bad request issue#851

Merged
HackTheW2d merged 2 commits intomainfrom
fix/fix-bad-request-storybook
Mar 2, 2026
Merged

fix the bad request issue#851
HackTheW2d merged 2 commits intomainfrom
fix/fix-bad-request-storybook

Conversation

@HackTheW2d
Copy link
Contributor

the problem is in server processing requests without headers:


app.use(express.json());  // only when Content-Type: application/json presented

express.json() only with Content-Type: application/json. But storybook didn't send with Content-Type POST request so request.body is undefined rather than {}

So this fix add headers to POST request

@HackTheW2d HackTheW2d requested a review from a team as a code owner March 2, 2026 21:55
@changeset-bot
Copy link

changeset-bot bot commented Mar 2, 2026

⚠️ No Changeset found

Latest commit: 0d2121a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@HackTheW2d HackTheW2d merged commit f022974 into main Mar 2, 2026
5 checks passed
@HackTheW2d HackTheW2d deleted the fix/fix-bad-request-storybook branch March 2, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants